package com.liu.remote;

import com.liu.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "sc-system")
public interface UserRemoteClient {

    @GetMapping("/api/user")
    User get(@RequestParam("id") int id);

}
